
#ifndef PROJECTZ_NUSER_NCOMMAND_CS_VEHICLE_BUY_H_
#define PROJECTZ_NUSER_NCOMMAND_CS_VEHICLE_BUY_H_

#include "../../engine.h"

#include "../../User.h"

namespace ProjectZ { namespace NCommand { namespace NWorld {

class CS_VEHICLE_BUY
{
public:
	static void OnExecute(User * pUser, ::Network::Packet * pPacket)
	{
		/*
		 * CS_VEHICLE_BUY		0x0930
			{
				u8	u8buy_idx;						/// 구매 인덱스
			}
		 */

		PREPARE_PACKET;

		int buy_index = 0; /// 구매 인덱스
		pPacket->ParseMsg("%c", & buy_index);

//		::ProjectZ::NGame::CItem	vehicle;
//		vehicle.Attribute.cur_duration = 100;
//		vehicle.Attribute.max_duration = 100;
//		vehicle.Attribute.class_type = 0;
//		vehicle.Attribute.sub_type = ::ProjectZ::NGame::CLASS_ITEM_TABLE_VEHICLE;
//		vehicle.Attribute.tid = 0;
//		vehicle.Attribute.bag_type = ::ProjectZ::NGame::BAG_TYPE_MISC;
//
//		int64_t item_seq = vehicle.InsertItemRecord(pUser, ::ProjectZ::NGame::ITEM_RECORD_STATUS_NORMAL);
//
//		::Network::Packet ack;
//		ack.Write8(item_seq);
//		vehicle.WriteToPacket(&ack);
//
//		ack.MakePacket(CMD_SC_VEHICLE_BUY);
//
//		pUser->Send(ack);

	}
};

} /*NWorld*/ } /*NCommand*/ } /*ProjectZ*/


#endif /* PROJECTZ_NUSER_NCOMMAND_CS_VEHICLE_BUY_H_ */
